# -*- coding: utf-8 -*-
from QuModLibs.Client import *
from Config import BIND_ROOM_ID

@Listen(Events.UiInitFinished)
def UiInitFinished(_={}):
    def _sendMsg():
        comp = clientApi.GetEngineCompFactory().CreateTextNotifyClient(levelId)
        comp.SetLeftCornerNotify("§l§b当前已绑定直播间: {} 可在Config.py中修改".format(BIND_ROOM_ID))
    clientApi.GetEngineCompFactory().CreateGame(levelId).AddTimer(2.0, _sendMsg)